package org.foj.model {
  import mx.collections.ArrayCollection;
  
  import org.foj.control.events.filters.GetProjectsListEvent;  
  
  [Bindable]
  public class PresentationModel {

    public function PresentationModel() {
      this.allIssuesList = new ArrayCollection();
      this.allProjectsList = new ArrayCollection();
      this.allSeveritiesList = new ArrayCollection();
      this.allStatusesList = new ArrayCollection();
      this.allTypesList = new ArrayCollection();
    }
    
    public var allIssuesList:ArrayCollection;
    public var allProjectsList:ArrayCollection;
    public var allTypesList:ArrayCollection;
    public var allSeveritiesList:ArrayCollection;
    public var allStatusesList:ArrayCollection;
    
    public var selectedIssue:Issue;
    public var selectedProjectFilter:String;
    public var selectedTypeFilter:String;
    public var selectedSeverityFilter:String;
    public var selectedStatusFilter:String;  
    
    public var selectedIssueComments:ArrayCollection;  
    
    public var projectListSelectedIndex:Number = 0;
    
    public function dispatchGetProjectsEvent():void {
      var getProjectsListEvent:GetProjectsListEvent = new GetProjectsListEvent(this);
      getProjectsListEvent.dispatch();
    }

  }
}